<?php
   $items = $db->query_read("
			SELECT *
			FROM " . TABLE_PREFIX . "site_city 
			WHERE display = 1 ORDER BY `order` DESC, name");
    $selectCity = '<select name="city_id" id="city_id">';
    $citySel = isset($_COOKIE['city']) ? $_COOKIE['city']: '0';
    while($item = $db->fetch_array($items))
	{
	       if ($citySel == $item['city_id'])
           {
                $selectCity .= "<option selected='selected'  value='{$item['city_id']}'>".$item['name']."</option>";
           } else{
                $selectCity .= "<option value='{$item['city_id']}'>".$item['name']."</option>";    
            }
    }
    $selectCity .= '</select>';

    $ad_location['add_field_city'] = $selectCity;

?>